generateVideoThumbnailSequence

abstract fun generateVideoThumbnailSequence(block: DesignBlock, thumbnailHeight: Int, timeBegin: Double, timeEnd: Double, numberOfFrames: Int): Flow<VideoThumbnailResult>

Generate a thumbnail sequence for the given video fill or design block. Note: There can only be one thumbnail generation request in progress for a given block. Note: During playback, the thumbnail generation will be paused.

Return

a flow of VideoThumbnailResult object which emits for every generated frame thumbnail. It emits exactly numberOfFrames times.

Parameters

block

the video fill or a design block.

thumbnailHeight

the height of a thumbnail. The width will be calculated from the video aspect ratio.

timeBegin

the time in seconds relative to the time offset of the design block at which the thumbnail sequence should start.

timeEnd

the time in seconds relative to the time offset of the design block at which the thumbnail sequence should end.

numberOfFrames

the number of frames to generate.